package presentationTier.actions;

import core.MovieException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import presentationTier.MainForm;
import presentationTier.dialogs.ChangeGenreDialog;

/**
 *
 * @author vojta
 */
public class ChangeGenreMenuItemAction implements ActionListener{

    MainForm form;

    public ChangeGenreMenuItemAction(MainForm aThis) {
        form = aThis;
    }

    public void actionPerformed(ActionEvent e) {
        try {
            ChangeGenreDialog d = new ChangeGenreDialog(form, true);
            d.setVisible(true);
        } catch (MovieException ex) {
            form.error(ex);
        }

    }

}
